import App from './App'

import Vue from 'vue'
import uView from '@/uni_modules/uview-ui'
import MyMixin from './mixins/index.js'

import headerMain from '@/components/headerMain/headerMain'
import tabbar from '@/components/tabbar/tabbar'
Vue.component('headerMain', headerMain)
Vue.component('tabbar', tabbar)
Vue.use(uView) 

Vue.mixin(MyMixin)

// import MyJsencrypt from './common/jsencrypt.js'
// Vue.mixin(MyJsencrypt)

// 引入 jsrsasign 库
import jsrsasign from 'jsrsasign';
Vue.prototype.$jsrsasign=jsrsasign

import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()


// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif